package top.resty.erp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.resty.erp.dao.IUser;
import top.resty.erp.domain.User;
import top.resty.erp.service.UserService;

import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author : resty
 * @date : 2021年03月31 19:50
 */
@Service
public class UserServiceImpl  implements UserService {
	
	@Autowired
	private IUser iUser;
	
	@Override
	public List<User> findUsersByCondition(User user) {
		return iUser.findUsersByCondition(user);
	}
	
	@Override
	public int savetUser(User user) {
		return iUser.savetUser(user);
	}
	
	@Override
	public List<String> getCompanies() {
		return iUser.getCompanies();
	}
	
	@Override
	public List<String> getLocationNames(String company) {
		return iUser.getLocationNames(company);
	}
	
	@Override
	public List<String> getContactNames(String param) {
		return iUser.getContactNames(param);
	}
	
	@Override
	public List<String> getTelephones(String param) {
		return iUser.getTelephones(param);
	}
}
